package scm.erp.sale.plan.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import scm.erp.core.mybatis.type.EnumValue;

public enum PlanStatus {
    DISABLE(0, "禁用"),
    ENABLE(1, "启用"),
    ;

    PlanStatus(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @JsonValue
    @EnumValue
    private final Integer value;
    private String name;

    public Integer getValue() {
        return value;
    }

    public String getName() {
        if (value==1){
            name="启用";
        }else {
            name="禁用";
        }
        return name;
    }
}

